/*
 * CommandeAvancer.h
 *
 *  Created on: 19 nov. 2012
 *      Author: aboursie - potier
 */

#ifndef CommandeAvancer_h
#define CommandeAvancer_h

#include "CommandeRobot.h"
#include <iostream>
#include <stdlib.h>
#include "../Robot.h"

class Invocateur;

class CommandeAvancer: public CommandeRobot {
private:
	int x;
	int y;
	int last_x;
	int last_y;

public:
	CommandeAvancer(Robot* r) {
		x=0;
		y=0;
		last_x = 0;
		last_y = 0;
		this->robot = r;
		commandes["AVANCER"] = this;
	}
	;
	bool initialiserArguments(vector<string> args);
	void execute();
	void desexecute();
	Commande* constructeurVirtuel();
};

#endif
